using System;
using System.Globalization;
using System.Windows.Data;

namespace FU.Capstones.IMS.Web.Common.Converters
{
    public class IntegerToBoolConverter : IValueConverter
    {
        #region Implementation of IValueConverter

        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            int itemp = (int) value;
            return itemp != 0;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}